
<form id="myForm" action="search.jsp" method="get" onsubmit="mySubmit()">


	<input type="hidden" id="searchstr" name='searchstr' value='' />


	<script>
		function mySubmit() {
			// alert("Data: "+ $("#searchparam").val());
			document.getElementById('searchstr').value = $("#searchparam")
					.val();
			document.getElementById("myForm").submit();
		}
	</script>
<%
if (session.getAttribute("isActive") == null) { 

	response.sendRedirect("../login.jsp");
}else{
%>
				
	

	<div class="navbar navbar-static-top">
		<div class="navbar-inner">
			<a class="brand" href="../wiki/home.jsp">Issue Tracker</a>
			<ul class="nav">
				<li class="divider-vertical"></li>
				<li id="addissue"><a href="../wiki/addIssue.jsp">Add Issue</a></li>
				<li class="divider-vertical"></li>
				<li id="allissue"><a href="../wiki/issuelist.jsp">Issues</a></li>
				<li class="divider-vertical"></li>
				<li class="span2"></li>
				<div class="form-search nav pull-right">
					<li class="input-append" style="margin-top: 5px;"><input
						id="searchparam" type="text" class="span4 search-query">
						<button type="submit" class="btn">Search</button></li>
				</div>

			</ul>

			<ul class="nav pull-right">
				<li class="divider-vertical"></li>

				<%
					    if (session.getAttribute("userrole").toString()
							.equalsIgnoreCase("2")) {
					
				
					
				%>

				<li class="dropdown"><a href="#" class="dropdown-toggle"
					data-toggle="dropdown">Admin <b class="caret"></b></a>
					<ul class="dropdown-menu">
						<li><a href="settings.jsp">Modules</a></li>
						<li><a href="userroles.jsp">Permissions</a></li>
						<li><a href="reports.jsp">Reports</a></li>
					</ul></li>
				<li class="divider-vertical"></li>

				<%
					}
				
				%>

				<li class="dropdown"><a href="#" class="dropdown-toggle"
					data-toggle="dropdown">Welcome <%=(String) session.getAttribute("firstname")%>
						<b class="caret"></b></a>
					<ul class="dropdown-menu">
						<li><a href="sendFeedback.jsp">Feedback</a></li>
						<li><a href="Logout.jsp">Logout</a></li>
					</ul></li>
			</ul>
		</div>
	</div>
	
	<%
				}
	%>
</form>




